<template>
  <el-container>
    <el-header><NavBar activeIndex="0"/></el-header>
    <el-main>
      <div class="bg-box" />
    </el-main>
  </el-container>
</template>

<script>
// 导入通用组件Navbar
import NavBar from '@/components/NavBar'

export default {
  name: 'Home',
  //  注册导入组件
  components: {
    NavBar
  }
}
</script>

<style lang="scss" scoped>
.el-container .el-header {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}
.bg-box{
  background-image: url('../../assets/bg.jpg'); // 通过类来导入图片
  height: 100%; //高度占比100%
  background-repeat: no-repeat; // 图片的重复和尺寸
  background-size: 100% 100% //背景图的尺寸设置yt
}
</style>
